@import "~taro-ui-vue/dist/style/components/curtain.scss";
@import "~taro-ui-vue/dist/style/components/modal.scss";
@import "@/assets/scss/tools.scss";
@import "@/assets/scss/theme.scss";
@import "@/assets/scss/common.scss";
$page-bg: $src-cdn + '/clock-in-1.png';
$tooltip-bg: $src-cdn + '/clock-in-2.png';
$submit-btn-bg: $src-cdn + '/clock-in-3.png';
$cloud-icon: $src-cdn + '/clock-in-4.png';
$small-btn-bg: $src-cdn + '/clock-in-5.png';

.at-curtain__container {
  width: 100%;
  .at-curtain__btn-close {
    display: none;
  }
}

page {
  width: 100%;
  min-height: 100%;
  background-color: #fff7e0;
}
.clock-in {
  min-height: 100vh;
  /* overflow-x: hidden; */
  background: url($page-bg) no-repeat, #fff7e0;
  background-size: 100% auto;
  .btn-disabled {
    opacity: 0.4;
  }
  .input-clock {
    background-color: #fffbef;
    min-height: 100px;
    padding: 48px 30px 16px;
    margin-top: 48px;
    box-sizing: border-box;
    &__content {
      box-sizing: border-box;
      background: #ffffff;
      border: 2px solid #f6cd88;
      border-radius: 16px;
      padding: 48px 0 0;
      font-size: 32px;
      textarea {
        width: 100%;
        height: 142px;
        padding: 0 32px;
        margin-bottom: 48px;
        box-sizing: border-box;
        &::placeholder {
          color: $text-color-secondary;
          font-size: 32px;
        }
      }
    }
    &__tips {
      color: $text-color-secondary;
      padding: 0 32px;
      @include normal-flex(space-between);
      &--wording {
        font-size: 28px;
        position: relative;
        > image {
          width: 24px;
          height: 24px;
          vertical-align: middle;
          padding: 16px;
        }
        &__tooltip {
          position: absolute;
          width: 628px;
          height: 159px;
          top: -130px;
          left: 26px;
          text-align: center;
          line-height: 150px;
          color: $text-color-primary;
          font-size: 28px;
          @include setBgi($tooltip-bg);
        }
      }
      &--word-limit {
        font-size: 32px;
      }
    }
    &__other-way {
      margin-top: 26px;
      height: 88px;
      border-top: 2px solid #fbebcf;
      @include normal-flex(space-between);
      &--item {
        @include normal-flex;
        flex: 1;
        height: 88px;
        position: relative;
        &::after {
          content: "";
          position: absolute;
          width: 2px;
          height: 40px;
          background-color: #f6cd88;
          right: 0;
          top: 24px;
        }
      }
      .no-border {
        &::after {
          opacity: 0;
        }
      }
      .icon {
        width: 44px;
        height: 44px;
      }
    }
    &__submit-btn {
      padding: 0 30px;
      margin-top: 64px;
      height: 88px;
      @include setBgi($submit-btn-bg);
      color: #fff;
      font-size: 32px;
      @include normal-flex;
    }
    &__voice {
      padding: 0 32px;
      @include normal-flex(space-between);
      flex-wrap: wrap;
      &--item {
        margin-top: 32px;
        width: 296px;
        position: relative;
        &:nth-child(1),
        &:nth-child(2) {
          margin-top: 0px;
        }
      }
      .only-one {
        width: 100%;
      }
    }
    &__images {
      padding: 0 32px;
      margin-top: 32px;
      :nth-child(3n) {
        margin-right: 0;
      }
      &--item {
        position: relative;
        display: inline-block;
        width: 198px;
        height: 198px;
        margin: 0 15px 16px 0;
        > image:not(.delete-icon) {
          width: 198px;
          height: 198px;
          vertical-align: middle;
          border-radius: 16px;
        }
      }
    }
  }
  .answer-clock {
    background-color: #fffbef;
    min-height: 100px;
    margin-top: 16px;
    padding: 48px 30px 16px;
    .question-amount {
      width: 102px;
      height: 56px;
      background-color: #ffeea9;
      border-radius: 100px;
      color: #606266;
      font-size: 28px;
      margin-bottom: 32px;
      @include normal-flex;
      > text {
        color: $text-color-primary;
        font-size: 32px;
        font-weight: bold;
      }
    }
    .question-content {
      color: $text-color-primary;
      font-size: 32px;
      &__stem {
        line-height: 48px;
        margin-bottom: 32px;
        word-break: break-all;
      }
      &__option {
        margin-bottom: 48px;
        word-break: break-all;
        &--check,
        &--checked {
          width: 40px;
          height: 40px;
          margin-right: 16px;
          vertical-align: middle;
          transform: translateY(-2px);
        }
        &--title,
        &--url {
          margin-top: 32px;
        }
        &--url {
          width: 100%;
          border-radius: 16px;
        }
      }
      &__analysis {
        position: relative;
        min-height: 200px;
        border: 2px solid #f6cd88;
        border-radius: 24px;
        background: #ffffff;
        padding-top: 40px;
        text-align: center;
        .cloud-container {
          position: absolute;
          top: 0;
          left: 50%;
          text-align: center;
          box-sizing: border-box;
          width: 324px;
          height: 80px;
          border: 2px solid #812900;
          background: linear-gradient(180deg, #ffeea9 0%, #ffd700 100%);
          border-radius: 100px;
          transform: translate3d(-50%, -50%, 0);
          &-content {
            line-height: 76px;
            font-size: 32px;
            font-family: PingFang SC;
            font-weight: bold;
            color: #a13d0f;
          }
          .left-cloud,
          .right-cloud {
            position: absolute;
            width: 126px;
            height: 56px;
            background-size: 100% 100%;
            top: 12px;
            background-image: url($cloud-icon);
          }
          .left-cloud {
            left: -62px;
          }
          .right-cloud {
            right: -62px;
            transform: rotateY(180deg);
          }
        }
        &--content {
          padding: 32px;
          border-top: 2px solid #fbebcf;
          text-align: left;
        }
        &--image {
          max-width: 100%;
          margin-bottom: 32px;
          border-radius: 16px;
        }
      }
      &__answer-analysis {
        @include normal-flex(flex-start);
        height: 152px;
        font-size: 32px;
        color: $text-color-primary;

        font-weight: bold;
        &--status {
          width: 160px;
          height: 72px;
          font-size: 28px;
          border-radius: 100px;
          @include normal-flex;
          margin: 0 32px;
          font-weight: normal;
        }
        &--status.right {
          background: rgba(8, 189, 111, 0.08);
          color: #08bd6f;
        }
        &--status.error {
          background: rgba(255, 101, 71, 0.08);
          color: #ff6547;
        }
        &--my {
          margin-left: 30px;
        }
        .right {
          color: #07cd5a;
        }
        .error {
          color: #ff4b10;
        }
      }
      &__btn {
        &--submit,
        &--next-big,
        &--prev-big,
        &--group > view {
          @include setBgi($tooltip-bg);
          @include normal-flex;
          color: #fff;
          font-size: 32px;
          width: 100%;
          height: 88px;
          margin-top: 64px;
        }
        &--group {
          padding: 0 30px;
          @include normal-flex(space-between);
          > view {
            @include setBgi($small-btn-bg);
            width: 300px;
            height: 88px;
          }
        }
      }
    }
  }

  .delete-icon {
    width: 28px;
    height: 28px;
    position: absolute;
    right: -12px;
    top: -12px;
  }
}
